package lambda;

public class demo1 {
    public static void main(String[] args) {
        //使用lambda表达式创建线程
        Thread thread=new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("线程已启动");
            }
        });
        thread.start();
    }
}
